﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoBackupDatabase.DAL;
using AutoBackupDatabase.ENT;
using System.Data;
namespace AutoBackupDatabase.BLL
{
    public class USERACCOUNTBLL
    {
         private USERACCOUNTDAL USERACCOUNTDAL;
       public USERACCOUNTBLL()
       {
           USERACCOUNTDAL = new USERACCOUNTDAL();
       }

       public List<USERACCOUNTENT> GET_USERACCOUNT_ALL()
       {
           return USERACCOUNTDAL.GET_USERACCOUNT_ALL();

       }
       public bool INSERTUSERACCOUNT(USERACCOUNTENT ent)
       {

           return USERACCOUNTDAL.INSERTUSERACCOUNT(ent);

       }
       public bool UPDATEUSERACOUNTBYID(USERACCOUNTENT ent)
       {

           return USERACCOUNTDAL.UPDATEUSERACOUNTBYID(ent);

       }
       public bool DELTELEBYUSERACCOUNTBYUSERACCOUNT(USERACCOUNTENT ent)
       {

           return USERACCOUNTDAL.DELTELEBYUSERACCOUNTBYUSERACCOUNT(ent);

       }

       public USERACCOUNTENT Login(USERACCOUNTENT ent)
       {
           return USERACCOUNTDAL.Login(ent);

       }

       public bool CHANGEPASSWORD(string userName, string passOld, string passNew)
       {
           return USERACCOUNTDAL.CHANGEPASSWORD(userName, passOld, passNew);

       }

       public bool RESETPASSWORD(string userName, string passNew)
       {
           return USERACCOUNTDAL.RESETPASSWORD(userName, passNew);

       }

    }
}
